<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $robot_id 机器人ID
 * @property int $scheme_id 方案ID
 * @property int $scheme_type 方案类型
 * @property string $user_id 用户ID
 * @property string $room_wxid 群微信ID
 * @property int $send_time 发送时间
 * @property array $content 发送内容
 * @property int $type 类型：0=未进群再次邀请 1=已进群再次营销
 * @property int $status 状态：0=待发送 1=已完成 2=发送失败 3=已取消
 * @property array $extra 额外参数
 * @property int $created_at 创建时间
 */
class ChRoomInviteSendTask extends MineModel
{
    public bool $timestamps = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_room_invite_send_task';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'robot_id', 'scheme_id', 'scheme_type', 'user_id', 'room_wxid', 'send_time', 'content', 'type', 'status', 'extra', 'created_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'robot_id' => 'integer', 'scheme_id' => 'integer', 'scheme_type' => 'integer', 'send_time' => 'integer', 'content' => 'array', 'type' => 'integer', 'status' => 'integer', 'extra' => 'array', 'created_at' => 'integer'];
}
